define(["dojo/_base/declare", "dijit/form/FilteringSelect", "dojo/data/ItemFileReadStore", "dijit/form/TextBox", "dijit/form/Button"], function(declare){
    declare("my.form.DeleteStudentFromClassesForm", [dijit.form.Form], {
    		startup : function(){
    			dijit.byId("studentIdStudent").attr("disabled", true); 

    			var classesDropDown = dijit.byId("studentClassesClasses");
    			
    			dojo.connect(classesDropDown, "onChange", this, function(){
    				var classesDropDown = dijit.byId("studentClassesClasses");
    				var studentStore = new dojo.data.ItemFileWriteStore(
        		    	    {
        		    	    	url:'getStudentsInClassesAction.action?classes.id='+classesDropDown.get("value"),
        		 			    requestMethod : "post"
        		    	    });
    				var studentsDropDown = dijit.byId("studentIdStudent");
    				studentsDropDown.set("disabled", false);
    				studentsDropDown.reset();
    				studentsDropDown.set("store",studentStore);
    			});
    			
    		}

    		
    		
    });
});